package com.wxz.boot.controller;

import com.wxz.boot.feign.BootClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

/**
 * @author 大硕
 * 2019-02-07 12:02 AM
 **/
@SuppressWarnings("all")
@RestController
@Slf4j
public class TestController {

    @Resource
    BootClient bootClient;

    /**
     * hello
     * @return return
     * @throws Exception exception
     */
    @RequestMapping(value = "/test", method = RequestMethod.GET)
    @ResponseBody
    public String hello() throws Exception {
        return " >>> feignclient >>>" + bootClient.getValue();
    }
}